package ${package.Controller};

import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import ${superControllerClassPackage};
import ${package.Service}.I${table.entityName}Service;



/**
* ${table.entityName}Controller
* @author ${author}
* @date ${date}
*/
@RestController
@RequestMapping("/${controllerMappingHyphen}")
public class ${table.controllerName} extends ${superControllerClass}{

    @Autowired
    private I${table.entityName}Service ${table.entityName}Service;

    /**
    * 查询${table.entityName}列表
    */
    @GetMapping("/list")
    public TableDataInfo list(${table.entityName} ${controllerMappingHyphen})
    {
        startPage();
        QueryWrapper<${table.entityName}> queryWrapper = new QueryWrapper<>();
        List<${table.entityName}> list = ${table.entityName}Service.list(queryWrapper);
        return getDataTable(list);
    }

}